﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace studentmanagementdemo
{
    public partial class frmtrangchinh : Form
    {
        public frmtrangchinh()
        {
            InitializeComponent();
        }

        private void btnsinhvien_Click(object sender, EventArgs e)
        {
            frmsinhvien _frmsinhvien = new frmsinhvien();
            _frmsinhvien.Show();
        }

        private void btnlop_Click(object sender, EventArgs e)
        {
            frmclass _frmclass = new frmclass();
            _frmclass.Show();
        }

        private void btndetai_Click(object sender, EventArgs e)
        {
            frmproject _frmproject = new frmproject();
            _frmproject.Show();
        }

        private void btnthoat_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Bạn có chắc chắn muốn thoát không ?", "THOÁT", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                Close();
                System.Windows.Forms.Application.Exit();
            }
        }

        private void sinhViênToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmsinhvien _frmsinhvien = new frmsinhvien();
            _frmsinhvien.Show();
        }

        private void lớpToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmclass _frmclass = new frmclass();
            _frmclass.Show();
        }

        private void đềTàiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmproject _frmproject = new frmproject();
            _frmproject.Show();
        }

        private void thoátToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Bạn có chắc chắn muốn thoát không ?", "THOÁT", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
            {
                Close();
                System.Windows.Forms.Application.Exit();
            }
        }

        private void btnxeplop_Click(object sender, EventArgs e)
        {
            frmxeplop _frmxeplop = new frmxeplop();
            _frmxeplop.Show();
        }

        private void đăngNhậpUserKhácToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmlogin _frmlogin = new frmlogin();
            _frmlogin.Show();
            Close();
            Dispose();
        }

        private void btnbaocao_Click(object sender, EventArgs e)
        {
            frmsinhvienreport _frmsinhvienreport = new frmsinhvienreport();
            _frmsinhvienreport.Show();
        }

        private void btnchondetai_Click(object sender, EventArgs e)
        {
            frmchondetai _frmchondetai = new frmchondetai();
            _frmchondetai.Show();
        }
    }
}
